Optimal. Leaf size=34 \[ -\frac{a (A+B) \log (1-\sin (c+d x))}{d}-\frac{a B \sin (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0695984, antiderivative size = 34, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.074, Rules used = {2836, 43} \[ -\frac{a (A+B) \log (1-\sin (c+d x))}{d}-\frac{a B \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2836
Rule 43
Rubi steps
\begin{align*} \int \sec (c+d x) (a+a \sin (c+d x)) (A+B \sin (c+d x)) \, dx &=\frac{a \operatorname{Subst}\left (\int \frac{A+\frac{B x}{a}}{a-x} \, dx,x,a \sin (c+d x)\right )}{d}\\ &=\frac{a \operatorname{Subst}\left (\int \left (-\frac{B}{a}+\frac{A+B}{a-x}\right ) \, dx,x,a \sin (c+d x)\right )}{d}\\ &=-\frac{a (A+B) \log (1-\sin (c+d x))}{d}-\frac{a B \sin (c+d x)}{d}\\ \end{align*}
Mathematica [A] time = 0.0337236, size = 68, normalized size = 2. \[ \frac{a A \tanh ^{-1}(\sin (c+d x))}{d}-\frac{a A \log (\cos (c+d x))}{d}-\frac{a B \sin (c+d x)}{d}+\frac{a B \tanh ^{-1}(\sin (c+d x))}{d}-\frac{a B \log (\cos (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.065, size = 47, normalized size = 1.4 \begin{align*} -{\frac{a\ln \left ( \sin \left ( dx+c \right ) -1 \right ) A}{d}}-{\frac{aB\sin \left ( dx+c \right ) }{d}}-{\frac{a\ln \left ( \sin \left ( dx+c \right ) -1 \right ) B}{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.01055, size = 39, normalized size = 1.15 \begin{align*} -\frac{{\left (A + B\right )} a \log \left (\sin \left (d x + c\right ) - 1\right ) + B a \sin \left (d x + c\right )}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.77425, size = 78, normalized size = 2.29 \begin{align*} -\frac{{\left (A + B\right )} a \log \left (-\sin \left (d x + c\right ) + 1\right ) + B a \sin \left (d x + c\right )}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} a \left (\int A \sec{\left (c + d x \right )}\, dx + \int A \sin{\left (c + d x \right )} \sec{\left (c + d x \right )}\, dx + \int B \sin{\left (c + d x \right )} \sec{\left (c + d x \right )}\, dx + \int B \sin ^{2}{\left (c + d x \right )} \sec{\left (c + d x \right )}\, dx\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.37615, size = 154, normalized size = 4.53 \begin{align*} \frac{{\left (A a + B a\right )} \log \left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1\right ) - 2 \,{\left (A a + B a\right )} \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 1 \right |}\right ) - \frac{A a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + B a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 2 \, B a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + A a + B a}{\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]